<!DOCTYPE html>
<html>
<head>

    <link rel="stylesheet" href="/Statics/Home/css/amazeui.min.css">

    <link rel="stylesheet" href="/Statics/Home/css/button.css">

    <link rel="stylesheet" href="/Statics/Home/js/sco/css/scojs.css" />

    <link rel="stylesheet" href="/Statics/Home/css/reset.css">
    <link rel="stylesheet" href="/Statics/Home/css/common.css">

    <template file="Home/meta" />

    <template file="Home/css" />




</head>
<body>
<template file="Home/search" />

<div class="am-g  common-border-bottom">



    <div data-am-widget="slider" class="am-slider am-slider-a1" >
        <ul class="am-slides">


                <volist name="_data.thumbs" id="v">

                    <li> <a href="{$v}" ><img src="{$v}"></a></li>
                </volist>





        </ul>
    </div>



</div>




<div class="am-g ">





    <div class=" prdocut-title am-padding-sm">

        <h3 class="am-margin-0 ">
            {$_data.title}  <del id="price" class="am-text-sm am-text-999">原价:￥{$_data.y_price}</del>

        </h3>



    </div>



    <div class="  common-border-bottom am-cf">




        <div class="am-u-sm-12">
            <span>会员价:</span>
            <span class="am-text-f60 am-text-lg  am-margin-right-xs"> ￥{$_data.price}</span>
            <span>钱包支付:</span>

            <span class="am-text-f60 am-text-lg "> ￥{$_data.qb_price}</span>



        </div>



        <div class="am-u-sm-12 am-text-xs">
            <span>单价:</span>
            <span class="am-text-f60 am-text-sm  am-margin-right-xs"> ￥{$_data.danjia}/{$_data.danwei}</span>
            <span>钱包支付:</span>

            <span class="am-text-f60 am-text-sm "> ￥{$_data.qb_danjia}/{$_data.danwei}</span>

            <span class="am-fr am-text-lg"><a href="{:U('User/Qianbao/index')}" class="am-text-danger">立即充值</a></span>


        </div>









    </div>


    <div class="  common-border-bottom am-cf am-padding-bottom-sm">




        <div class="am-u-sm-12">


            <volist name="tonglei" id="v">

                <php> $class=($_data['id']==$v['id'])?"am-btn-success":"am-btn-default";
                </php>

                <a href="{:U('show',array('id'=>$v['id']))}" class="am-btn {$class} am-btn-sm  am-margin-right-sm  am-margin-top-sm">{$v.guige}</a>



            </volist>



        </div>




    </div>




    <div class="am-cf am-margin-xs   am-text-999  common-border-bottom am-padding-bottom-xs ">

        <div class="am-u-sm-12">

          库存剩余: <span id="kucun">{$_data.kucun}</span>        销量: {$_data.xiaoliang}


        </div>





    </div>






</div>





<div class="  am-margin-top-sm ">


    <div data-am-widget="tabs" class="am-tabs am-tabs-d3 am-margin-0" style="overflow: hidden">
        <ul class="am-tabs-nav am-cf am-bg-fff ">
            <li class="am-active"><a href="[tuwen]">商品详情</a></li>
            <li class=""><a href="[canshu]">评价</a></li>
            <li class=""><a onclick="location.href='/help';return false;">使用帮助</a></li>

        </ul>
        <div class="am-tabs-bd am-bg-fff  ">
            <div tuwen class="am-tab-panel am-active product_content">


                <div class="am-cf  am-margin-vertical-sm am-padding-sm   am-padding-bottom-0 am-margin-bottom-0 " id="content">
                    {$_data.content}
                </div>





            </div>
            <div canshu class="am-tab-panel  am-padding-horizontal-sm am-text-sm">


                <volist name="pingjias" id="vs">
                    <div class="am-cf  am-margin-vertical-sm am-padding-sm   ">

                        <div class="am-fl">

                            <if condition="$vs['niming']">

                                <i class="am-icon-user"></i>
                               匿名
                                <else/>
                                <img src="{$vs.avatar}" class="am-circle" width="20px" alt="">
                                {$vs.nickname}
                            </if>



                        </div>
                        <div class="am-fr">
                            <span> 描述:{$vs.miaoshu}分</span>
                            <span> 物流:{$vs.wuliu}分</span>
                            <span> 服务:{$vs.fuwu}分</span>


                        </div>

                        
                    </div>

                    <div class="am-cf  am-margin-vertical-sm am-padding-sm   common-border-bottom">

                        <p>{$vs.content}</p>

                        <p class="am-text-999 am-text-xs">尺码: {:F('Var_chicun')[$vs["chicun"]][name]}:外框: {:F('Var_waikuang')[$vs["waikuang"]][name]}   *  {$vs.num}</p>
                    </div>


                </volist>



            </div>


        </div>
    </div>


</div>

<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top "
     id="">


    <div class="product-bottom ">


        <a href="/" class="am-navbar-button first am-cf am-fl am-text-xs">

            <i class="iconfont icon-home"></i>
            <span class="am-navbar-label am-margin-top-xs">首页</span>
        </a>

        <a href="{:U('User/Favorite/add',array('product_id'=>I('get.id')))}" class="am-navbar-button second am-cf  am-fl am-text-xs ajax-get">
            <i class="iconfont icon-shouc01"></i>
            <span class="am-navbar-label am-margin-top-xs">关注</span>
        </a>

        <a href="/Home/Cart/index.html" class="am-navbar-button third am-cf  am-fl am-text-xs ">
            <i class="iconfont icon-cart"></i>
            <span class="am-navbar-label am-margin-top-xs">购物车</span>
        </a>
        <if condition="$_data['kucun']">

        <div class="am-u-sm-6 am-padding-0">  <a  class="am-btn right am-btn-warning   ajax-get"  href="{:U('addcart',array('id'=>$_data['id']))}"    >加入购物车</a>
        </div>
        <div class="am-u-sm-6 am-padding-0">  <a  class="am-btn right am-btn-danger   ajax-get"  href="{:U('addcart',array('id'=>$_data['id'],'jump'=>1))}" >立即购买</a>
        </div>


        <else/>
            <div class="am-u-sm-12 am-padding-0">  <a  href="{:U('Home/Index/auth')}" class="am-btn right am-btn-warning   "    >关注公众号</a>
            </div>

        </if>







    </div>




</div>



<template file="Home/js" />


</body>
</html>